﻿namespace PSatSimCom.RandomGenerators
{
    class IntegerRandom : IRandomize
    {
        private readonly int _lower = 0;
        private readonly int _upper = 0;
        private readonly int _step = 1;

        public IntegerRandom(int lower, int upper)
        {
            _lower = lower;
            _upper = upper;
        }

        public IntegerRandom(int lower, int upper, int step)
        {
            _lower = lower;
            _upper = upper;
            _step = step;
        }

        public string Get()
        {
            var rand = RandomSingleton.Rand.Next(_lower, _upper + 1)*_step;
            return rand.ToString("D");
        }
    }
}
